package com.ideaaedi.springcloud.jd.commonds.entity.user.vo.req;

import com.ideaaedi.springcloud.jd.commonds.entity.BaseDTO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;

/**
 * <p>
 * 系统-数据字典类别表 add req
 * </p>
 *
 * @author <font size = "20" color = "#3CAA3C"><a href="https://gitee.com/JustryDeng">JustryDeng</a></font> <img src="https://gitee.com/JustryDeng/shared-files/raw/master/JustryDeng/avatar.jpg" />
 * @since 2021.0.5.B
 */
@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel(description = "系统-数据字典类别表 add req")
public class SysDictTypeAddReqVO extends BaseDTO {

    /**
     * 字典类型编码
     */
    @NotBlank(message = "编码不能为空")
    @ApiModelProperty(value = "字典类型编码（全局唯一）", required = true)
    private String code;

    /**
     * 字典类型名称
     */
    @NotBlank(message = "名称不能为空")
    @ApiModelProperty(value = "字典类型名称", required = true)
    private String name;

    /**
     * 备注
     */
    @ApiModelProperty("备注")
    private String remark;
}